﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace ST.Buz.Base.Migrations
{
	public partial class _3 : Migration
	{
		protected override void Up(MigrationBuilder migrationBuilder)
		{
			migrationBuilder.DropColumn(
				name: "RecvState",
				table: "BJG_Machining");

			migrationBuilder.AddColumn<decimal>(
				name: "TotalRecvMetersDue",
				table: "IMS_FinanceRecvDue",
				type: "decimal(18,2)",
				nullable: false,
				defaultValueSql: "((0))");

			migrationBuilder.AddColumn<decimal>(
				name: "TotalRecvedMeters",
				table: "IMS_FinanceRecvDue",
				type: "decimal(18,2)",
				nullable: false,
				defaultValueSql: "((0))");

			migrationBuilder.AddColumn<decimal>(
				name: "RecvedMeters",
				table: "IMS_FinanceRecvDetail",
				type: "decimal(18,2)",
				nullable: false,
				defaultValueSql: "((0))");

			migrationBuilder.AddColumn<decimal>(
				name: "TotalRecvMeters",
				table: "IMS_FinanceRecv",
				type: "decimal(18,2)",
				nullable: false,
				defaultValueSql: "((0))");
		}

		protected override void Down(MigrationBuilder migrationBuilder)
		{
			migrationBuilder.DropColumn(
				name: "TotalRecvMetersDue",
				table: "IMS_FinanceRecvDue");

			migrationBuilder.DropColumn(
				name: "TotalRecvedMeters",
				table: "IMS_FinanceRecvDue");

			migrationBuilder.DropColumn(
				name: "RecvedMeters",
				table: "IMS_FinanceRecvDetail");

			migrationBuilder.DropColumn(
				name: "TotalRecvMeters",
				table: "IMS_FinanceRecv");

			migrationBuilder.AddColumn<int>(
				name: "RecvState",
				table: "BJG_Machining",
				type: "int",
				nullable: false,
				defaultValue: 0);
		}
	}
}
